package com.ysu.yybk.form;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class DiscussAddScoreFrom {

    @NotNull
    private Integer discussId;

    @NotNull
    private Integer groupId;

    @NotNull
    @Min(value = 0, message = "最小是0分！")
    @Max(value = 5, message = "最高是5分!")
    private Integer score;
}
